package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.StorageStatusEnum;
import com.smartfactory.sail.entity.enums.StorageType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 仓库流水
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "StorageRecord对象", description = "仓库流水")
public class StorageRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "仓库类型1成品|2原料|3废品")
    @TableField("storageType")
    private StorageType storageType;

    @ApiModelProperty(value = "容器id 螺丝厂的容器是box")
    @TableField("containerId")
    private Long containerId;

    @ApiModelProperty(value = "产品|原料|废品 的itemId")
    @TableField("itemId")
    private Long itemId;

    @ApiModelProperty(value = "订单id")
    @TableField("orderId")
    private Long orderId;

    @ApiModelProperty(value = "采购明细id")
    @TableField("purchaseRecordId")
    private Long purchaseRecordId;

    @ApiModelProperty(value = "产品数量")
    private Integer size;

    @ApiModelProperty(value = "当前状态1.待入库2.外发3.检测不过关.4.已入库")
    private StorageStatusEnum status;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private String updateTime;


}
